<?php
    header("content-type:text/html;charset=utf-8");
    session_start();
    if(!empty($_SESSION)){
        $_SESSION = array();
        die("<script>alert('注销成功！');window.location.href='/home/index.php'</script>");
    }else{
        die("<script>alert('请先登录！');window.location.href='/home/login/login.php'</script>");
    }
?>